Skip to content

fix(memory): add explicit pass-through methods to MemoryClient for IDE autocomplete#553

Open
citizen204 wants to merge 1 commit into
aws:mainfrom
citizen204:fix-354-explicit-memory-client-passthrough-methods
Open

fix(memory): add explicit pass-through methods to MemoryClient for IDE autocomplete#553
citizen204 wants to merge 1 commit into
aws:mainfrom
citizen204:fix-354-explicit-memory-client-passthrough-methods

Conversation

@citizen204

Copy link
Copy Markdown
Contributor

Summary

MemoryClient uses __getattr__ to proxy 15 boto3 client methods. Static analysis tools in IDEs cannot see through __getattr__, so none of those methods appeared in autocompletion, hover docs, or type-checker diagnostics.

This PR adds 15 explicit forwarding methods — 13 data-plane (gmdp_client) and 2 control-plane (gmcp_client) — that delegate to the same accept_snake_case_kwargs-wrapped boto3 calls that __getattr__ already uses. Runtime behavior is unchanged; __getattr__ is kept as a catch-all for any future additions.

Fixes #354

Changes

  • src/bedrock_agentcore/memory/client.py: Added explicit methods for retrieve_memory_records, get_memory_record, delete_memory_record, list_memory_records, get_event, delete_event, batch_create_memory_records, batch_delete_memory_records, batch_update_memory_records, start_memory_extraction_job, list_memory_extraction_jobs, list_sessions, list_actors (data plane) and get_memory, update_memory (control plane).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: missing IDE autocomplete for passthrough methods.

1 participant